Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set Machine Extension Names to the correct value #43

Merged
merged 1 commit into from
Sep 23, 2020
Merged

Conversation

koikonom
Copy link
Contributor

@koikonom koikonom commented Sep 9, 2020

In order for the GPO to apply the security settings we need to set the
GPO's relevant field to the correct values.

Fixes #39.

In order for the GPO to apply the security settings we need to set the
GPO's relevant field to the correct values.

Fixes #39.
@koikonom koikonom requested a review from a team September 9, 2020 17:12
@ghost ghost added size/XS labels Sep 9, 2020
Copy link

@tombuildsstuff tombuildsstuff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

otherwise seems fine 👍

@@ -55,7 +55,15 @@ func resourceADGPOSecurityCreate(d *schema.ResourceData, meta interface{}) error
return err
}

// GUIDs for security settings are defined here:
// https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-gpsb/55bb803e-b35f-4ce8-b558-4c1e92ad77a4
err = winrmhelper.SetMachineExtensionNames(winrmClient, gpo.DN, "[{827D319E-6EAC-11D2-A4EA-00C04F79F83A}{803E14A0-B4FB-11D0-A0D0-00A0C90F574B}]")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

feels like maybe these should be constants to give some meaning to these?

@koikonom koikonom merged commit 548f288 into master Sep 23, 2020
@ghost
Copy link

ghost commented Oct 24, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks!

@ghost ghost locked as resolved and limited conversation to collaborators Oct 24, 2020
@koikonom koikonom deleted the extension_names branch January 6, 2021 11:32
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

gPCMachineExtensionNames isn't set on GPO attributes, causing them to not show and not apply
2 participants